.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(120deg, #fff9e6 0%, #ffeaa7 100%);
  position: relative;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #ff9a00 0%, #ff6b00 100%);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    transform: scaleX(1.5);
    z-index: 0;
  }

  .login-card {
    width: 100%;
    max-width: 420px;
    padding: 50px 40px 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 154, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 1;
    margin-bottom: 30px;

    .login-header {
      text-align: center;
      margin-bottom: 30px;

      .title {
        color: #333;
        font-size: 26px;
        font-weight: 600;
        margin: 0 0 8px;
        letter-spacing: 1px;
      }

      .subtitle {
        color: #888;
        font-size: 14px;
        margin-bottom: 10px;
      }
    }

    .login-tabs {
      display: flex;
      background: #f5f7fa;
      border-radius: 12px;
      padding: 4px;
      margin-bottom: 30px;

      .tab-item {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        color: #666;
        transition: all 0.3s;

        &.active {
          background: linear-gradient(120deg, #ff9a00, #ff6b00);
          color: white;
          font-weight: 500;
          box-shadow: 0 2px 8px rgba(255, 154, 0, 0.3);
        }
      }
    }

    .login-form {
      margin-bottom: 20px;
      margin-top: 20px;
      :deep(.el-form-item) {
        margin-bottom: 22px;
      }

      .custom-input {
        :deep(.el-input__wrapper) {
          border-radius: 12px;
          padding: 2px 15px;
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
          transition: all 0.3s;

          &:hover {
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
          }

          &.is-focus {
            box-shadow: 0 2px 12px rgba(255, 154, 0, 0.2) !important;
            border-color: #ff9a00;
          }
        }

        :deep(.el-input__prefix) {
          .el-icon {
            font-size: 18px;
            color: #909399;
          }
        }
      }

      .sms-code-wrapper {
        display: flex;
        gap: 12px;
        align-items: center;
        width: 100%;

        .sms-code-input {
          flex: 1;
          min-width: 0;
        }

        .sms-code-button {
          width: 110px;
          border-radius: 12px;
          background: linear-gradient(120deg, #ff9a00, #ff6b00);
          color: white;
          border: none;
          font-weight: 500;
          transition: all 0.3s;

          &:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 154, 0, 0.3);
          }

          &:disabled {
            background: #f5f7fa;
            color: #c0c4cc;
          }
        }
      }

      .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;

        :deep(.el-checkbox) {
          color: #666;

          .el-checkbox__label {
            font-size: 14px;
          }
        }

        :deep(.el-link) {
          font-size: 14px;
        }
      }
    }

    .login-footer {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 14px;
      color: #666;

      :deep(.el-link) {
        font-size: 14px;
        font-weight: 500;
      }
    }
  }
}

// 添加过渡动画
.fade-enter-active,
.fade-leave-active {
  transition: all 0.3s ease;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
  transform: translateY(10px);
}

.fade-enter-to,
.fade-leave {
  opacity: 1;
  transform: translateY(0);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
  background-color: #f5f7fa;

  &.active {
    background: linear-gradient(120deg, #ff9a00, #ff6b00);
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 154, 0, 0.3);
    transform: scale(1.02);
  }

  &:hover:not(.active) {
    background-color: #e6e6e6;
    transform: scale(1.01);
  }
}

// 响应式设计
@media (max-width: 500px) {
  .login-container {
    padding: 10px;

    .login-card {
      padding: 40px 25px 25px;
      margin-bottom: 20px;
    }

    &::before {
      height: 200px;
    }
  }
}